<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>后台管理</title>
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" type="text/css" href="/static/admin/font/iconfont/iconfont.css">
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/Bootstrap/5.0.1/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/static/admin/style/style.css" />
</head>
<body>
<div class="main">
  <ol class="breadcrumb">
    <li class="breadcrumb-item iconfont icon-home">首页</li>
    <li class="breadcrumb-item active">纸条管理</li>
  </ol>
  <div class="list-info mt-3">
    <span>共有 <strong>{{$scrips->total()}}</strong> 条数据</span>
  </div>
  <table class="table table-bordered table-hover text-center mt-3">
    <thead>
      <tr>
      	<th>ID</th>
        <th>放入时间</th>
        <th>内容</th>
        <th>微信</th>
        <th>状态</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      @foreach($scrips as $value)
      <tr>
      	<td>{{$value->id}}</td>
        <td>{{ Str::limit($value->created_at, 16, '') }}</td>
        <td title="{{$value->content}}">{{ Str::limit($value->content, 30, '...') }}</td>
        <td>{{$value->weixin}}</td>
        <td>
          @if($value->status == 1)
          <span class="badge bg-success">已审核</span>
          @elseif($value->status == 0)
          <span class="badge bg-warning">未审核</span>
          @else
          <span class="badge bg-danger">审核失败</span>
          @endif
        </td>
        <td>
          <a class="btn btn-primary btn-sm" href="/admin/scrip/edit?id={{$value->id}}">编辑</a>
        </td>
      </tr>
      @endforeach
    </tbody>
  </table>
  <div class="page my-3">{{ $scrips->appends(Request()->all())->render() }}</div>
</div>
<script type="text/javascript" src="plugins/jquery/3.3.1/jquery.js"></script>
<script type="text/javascript" src="plugins/Bootstrap/5.0.1/js/bootstrap.js"></script>
<script type="text/javascript" src="plugins/layer/2.4/layer.js"></script>
<script type="text/javascript" src="script/common.js"></script>
</body>
</html>